package com.jia.lidao.enity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by 00029935 on 2017/12/14.
 */

public class Message {

    /**
     * err_code : 0
     * err_msg : OK
     * timestamp : 1513219024
     * category : [{"type":3,"count":7,"message_category_id":3,"name":"订单消息","icon":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/1268e0210dd17119e8540dd448fd5afc.png"}]
     */

    private int err_code;
    private String err_msg;
    private int timestamp;
    private List<CategoryBean> category;

    public int getErr_code() {
        return err_code;
    }

    public void setErr_code(int err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }

    public List<CategoryBean> getCategory() {
        return category;
    }

    public void setCategory(List<CategoryBean> category) {
        this.category = category;
    }

    public static class CategoryBean implements Serializable{
        /**
         * type : 3
         * count : 7
         * message_category_id : 3
         * name : 订单消息
         * icon : https://yingdd.oss-cn-hangzhou.aliyuncs.com/1268e0210dd17119e8540dd448fd5afc.png
         */

        private int type;
        private int count;
        private int message_category_id;
        private String name;
        private String icon;
        private String content="";

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public int getMessage_category_id() {
            return message_category_id;
        }

        public void setMessage_category_id(int message_category_id) {
            this.message_category_id = message_category_id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getIcon() {
            return icon;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }
    }
}
